#pragma once

#include "../IFilter.h"
#include "../../ImageCores/xImage.h"

// CMask command target

enum MaskType
{
	INTERSECTION, UNION
};

class CMask : public IImageFilter
{
public:
	CMask(MaskType type);
	virtual ~CMask();

	inline MaskType GetType() { return m_type; }
	inline void SetType(MaskType type) { m_type = type; }

	virtual BOOL Apply(CxImage& srcImage, CxImage& mask);

protected:
	MaskType m_type;
};